package com.mla.fastdfs.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mla.fastdfs.dto.PermissionDto;
import com.mla.fastdfs.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *
 * @author Jun
 * @version v1.0
 * @date 2020-08-17
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> selectByRecord(Permission record);

    List<Permission> checkRepeat(Permission record);

    List<Permission> getUserMenu(String userId);

    List<Permission> getRoleAllById(@Param("roleId") Integer roleId, @Param("istype") Integer istype);

    List<PermissionDto> treeList(Permission record);
}